.gameList {
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  grid-gap: 1.5rem;
  padding: 0 var(--space-md-fixed) var(--space-3xl);
  margin: var(--space-md) 0;
}

.gameList.firstLane {
  padding: 0 var(--space-md-fixed) var(--space-md-fixed);
}

.gameList.firstLane > div:has(.justPlayed) {
  grid-column: span 2;
}

.gameListLayout {
  display: flex;
  flex-direction: column;
  padding-top: 1em;
  min-height: 2vh;
  min-width: 80vw;
  margin: 0 var(--space-md-fixed);
}

.gameListHeader {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr 10%;
  justify-items: baseline;
  width: 100%;
  color: var(--text-default);
  font-weight: var(--bold);
  padding-bottom: 0.5rem;
  font-size: var(--text-lg);
}

.gameListHeader span:last-child {
  justify-self: center;
}

.libraryHeader {
  text-align: start;
  padding: var(--space-md-fixed);
  margin: 0;
  background: var(--gradient-body-background, var(--body-background));
  position: sticky;
  top: var(--header-height, 82px);
  z-index: 9;
}

.libraryHeaderWrapper {
  display: grid;
  align-items: center;
  margin: calc(-1 * var(--space-3xs)) 0;
  grid-template-columns: max-content min-content;
  grid-template-areas: 'title action';
  justify-content: space-between;
}

#backToTopArrow {
  font-size: 3.2vh;
}

#backToTopBtn {
  border-radius: 100%;
  width: 5vh;
  height: 5vh;
  position: fixed;
  bottom: 3%;
  right: 0;
  margin: var(--space-md) var(--space-xl);
  border: 1px var(--accent) solid;
  background-color: var(--background);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  z-index: 9;
  visibility: hidden;
  transition: all 0.3s ease-in;
  cursor: pointer;
  opacity: 0.7;
}

#backToTopBtn:hover {
  opacity: 1;
}

.listing {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
